/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package management;


import java.sql.Connection;

/**
 *
 * @author Cucnth
 */
public class BLDataAccess {

    private DataAccess da;

    public BLDataAccess(String host, int port, String database, String user, String pass) {
        this.da = new DataAccess(host, port, database, user, pass);
    }

    public BLDataAccess() throws Exception {
        this.da = new DataAccess();
    }

    public Connection getConnection() throws Exception {
        try {
            return da.getConnection();
        } catch (Exception ex) {
            throw ex;
        }
    }

    public void closeCon() throws Exception {
        try {
            da.closeCon();
        } catch (Exception ex) {
            throw ex;
        }
    }
}
